<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%@page isELIgnored="false" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>资产入库</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link id="bootstrap-style" href="<c:url value="/css/bootstrap.min.css"/>" rel="stylesheet">
	<link href="<c:url value="/css/bootstrap-responsive.min.css"/>" rel="stylesheet">
	<link id="base-style" href="<c:url value="/css/style.css"/>" rel="stylesheet">
	<link id="base-style-responsive" href="<c:url value="/css/style-responsive.css"/>" rel="stylesheet">
	<link href="<c:url value="/css/index.css"/>" rel="stylesheet">
	<link rel="shortcut icon" href="<c:url value="/img/favicon.ico"/>">
	<link href="<c:url value="/css/page.css"/>" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/jquery.datetimepicker.css"/>"/>
	<link href="<c:url value="/css/but.css"/>" rel="stylesheet">
	<script src="<c:url value="/js/jquery-1.9.1.min.js"/>"></script>
	<script src="<c:url value="/js/jquery-migrate-1.0.0.min.js"/>"></script>
	<script type="text/javascript" src="<c:url value="/js/layer/layer.js"/>"></script>
	<script src="<c:url value="/js/laydate/laydate.js"/>"></script>
	<script src="<c:url value="/js/build/jquery.datetimepicker.full.js"/>"></script>
</head>
 <script type="text/javascript">
 
 $(function(){ 
	 var msg="${msg}";
	 if(msg!=null&&msg!=""){
		 alert(msg);
		 window.parent.location.reload(); //刷新父页面
		 var index = parent.layer.getFrameIndex(window.name);  
		 parent.layer.close(index);  
	 }
 }); 
 
 
 var i=1;
 
 
 function closebutton() {
	var index = parent.layer.getFrameIndex(window.name);  
 	parent.layer.close(index);  
 }
 


function submitForm(){
	document.forms["frm"].submit();
}


 </script>
<body>

	<form name="frm" id="frm" method="post" action="<%=basePath%>assets/insert">
			<input type="hidden" id="tiems" name="tiems"  value="">
			<div id="content" class="span10" style="width: 100%;">
				<div class="row-fluid content-table">
					<table id="tab" class="table table-striped table-bordered bootstrap-datatable">
					  <tbody>
						<tr>
							<td >物品：</td>
							<td >
								<input type="text" id="name" name="name" value="">
							</td>
							<td >编码：</td>
							<td >
								<input type="text" id="coding" name="coding" value="">
							</td>
						</tr>
						<tr>
							<td >数量：</td>
							<td >
								<input type="text" id="number" name="number" value="">
							</td>
							<td >单位：</td>
							<td >
								<input type="text" id="unit" name="unit" value="">
							</td>
						</tr>
						<tr>
							<td >型号：</td>
							<td >
								<input type="text" id="model" name="model" value="">
							</td>
							<td >单价：</td>
							<td >
								<input type="text" id="unitprice" name="unitprice" value="">
							</td>
						</tr>
						<tr>
							<td >总价：</td>
							<td >
								<input type="text" id="totalprice" name="totalprice" value="">
							</td>
							<td ></td>
							<td ></td>
						</tr>
						<tr>
							<td >备注：</td>
							<td colspan="3" >
								<textarea style="resize: none; width: 530px; height: 60px;"  id="remarks" name="remarks"></textarea>
							</td>
						</tr>
						<tr class="content-search" style="text-align: center;">
							<td colspan="4" style="width:100%;">
								<div>
									<button style="background-color:#f55353;" type="button" onclick="closebutton();" id="output1">关闭</button>
									<button class="but" type="button" id="output" onclick="submitForm();">确定</button>
								</div>
							</td>
						</tr>
					  </tbody>
				  </table>            
				</div>	
			</div>
	</form>
</body>
</html>
